package com.lijy.beta.web;

import com.lijy.beta.biz.service.DemoService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication(scanBasePackages = "com.lijy.beta")
@RestController
@MapperScan("com.lijy.beta.dao.mapper")
public class App {

    @Autowired
    private DemoService demoService;

    @RequestMapping("/")
    public String test() {
        return demoService.test();
    }

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

}
